<template>
	<view class="index-content">
		<view class="btn-content">
			<view class="btnitem">
				<u--image :showLoading="true" :src="btn1" width="300rpx" height="300rpx" ></u--image>
			</view>
			<view class="btnitem">
				<u--image :showLoading="true" :src="btn2" width="300rpx" height="300rpx" ></u--image>
			</view>
			<view class="btnitem">
				<u--image :showLoading="true" :src="btn3" width="300rpx" height="300rpx" @click="gourl('http://1.95.34.145:5010/ui/chat/623fdee50fda802c')"></u--image>
			</view>
			<view class="btnitem">
				<u--image :showLoading="true" :src="btn4" width="300rpx" height="300rpx" @click="gologin()"></u--image>
			</view>


		</view>
	</view>
</template>

<script>
	import btn1 from "@/static/index/btn1.png"
	import btn2 from "@/static/index/btn2.png"
	import btn3 from "@/static/index/btn3.png"
	import btn4 from "@/static/index/btn4.png"

	export default {
		data() {
			return {
				title: 'Hello',
				btn1,
				btn2,
				btn3,
				btn4,
			}
		},
		onLoad() {

		},
		methods: {
			gologin() {
				console.log(123);
				uni.navigateTo({
					url: '/pages/login/login'
				})
			},
			gourl(url){
				window.location.href = url;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.index-content {
		height: 100vh;
		background-image: url('/static/index/bj.png');
		background-repeat: no-repeat;
		background-size: 100% auto;
		background-position: top center;

		// 750 -100 650 -300 50
		.btn-content {
			position: fixed;
			top: 514rpx;
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			padding: 0 50rpx;

			.btnitem {
				margin-bottom: 50rpx;
			}
		}
	}
</style>